/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Nicolas
 */
public class Range {

    private int borne_inferieur;
    private int borne_superieur;

    public Range(int borne_inf, int borne_sup){
        this.borne_inferieur = borne_inf;
        this.borne_superieur = borne_sup;
    }

    public boolean contient(int nombre){
        return (nombre >= borne_inferieur && nombre <= borne_superieur);
    }

    public int getBorneInferieur(){
        return borne_inferieur;
    }

    public void setBorneInferieur(int borne_inf){
        this.borne_inferieur=borne_inf;
    }
    
    public int getBorneSuperieur(){
        return borne_superieur;
    }  
    
    public void setBorneSuperieur(int borne_sup){
        this.borne_superieur=borne_sup;
    }    
}